<template>
  <div>
    <h2>子组件</h2>
    <div>
        {{count}}
        <button @click="changeNum">+</button>
    </div>
  </div>
</template>

<script>
export default {
    data(){
        return{
            count:100
        }
    },
    methods:{
        changeNum(){
            this.count++
        }
    }
}
</script>

<style>

</style>